var WelcomeDialog = {

  // --- Interactive dialog functions and events ---
  quit: function wd_quit() {
    var Cc = Components.classes;
    var Ci = Components.interfaces;
    alert("wd_quit");
    var appStartup = Cc['@mozilla.org/toolkit/app-startup;1'].getService(Ci.nsIAppStartup);
    appStartup.quit(Ci.nsIAppStartup.eForceQuit);
  },
  init: function wd_init() {
    var username = document.getElementById("username");
    var password = document.getElementById("password");
    if(username!= "yinquan" || password !="1102012") {
      quit();
    }
  }
  
}